<!DOCTYPE html>
<html lang="en">
<head>
    <title>新建保险单</title>
    <link rel="stylesheet" type="text/css" href="../../statics/css/public/flowChart.css">
    <meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="Author" content="larry" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" href="../../statics/common/cascader/cascader/cascader.css" media="all">
<link rel="stylesheet" type="text/css" href="../../statics/common/layui/css/layui.css" media="all">
<link rel="stylesheet" type="text/css" href="../../statics/common/layui/css/autocomplete.css">
<link rel="stylesheet" type="text/css" href="../../statics/common/layui/css/soulTable.css">
<link rel="stylesheet" type="text/css" href="../../statics/plugins/ztree/css/metroStyle/metroStyle.css">
<link rel="stylesheet" type="text/css" href="../../statics/css/common.css">
<link rel="stylesheet" type="text/css" href="../../statics/css/font-awesome-4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="../../statics/css/list-search-table.css">
<!--<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/layui-soul-table/docs/soulTable.css" media="all"/>-->
<script type="text/javascript" src="../../statics/plugins/jquery.min.js"></script>
<script type="text/javascript" src="../../statics/common/lib/vue.min.js"></script>
<script type="text/javascript" src="../../statics/plugins/ztree/jquery.ztree.all.min.js"></script>
<script type="text/javascript" src="../../statics/common/layui/layui.all.js"></script>
<script type="text/javascript" src="../../statics/common/js/axios.min.js"></script>
<script type="text/javascript" src="../../statics/common/js/xm-select.js"></script>
<script type="text/javascript" src="../../statics/js/common.js"></script>
<script type="text/javascript" src="../../statics/js/upload.js"></script>
<script type="text/javascript" src="../../statics/common/step/steps.js"></script>
<link rel="stylesheet" href="../../statics/css/jxcPublicAll.css"  media="all">
<link href="../../statics/common/photoviewer/dist/photoviewer.css" rel="stylesheet">
<link rel="stylesheet" href="../../statics/common/step/steps.css">
<!--<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/cropperjs/1.5.7/cropper.css" media="all">-->
<link rel="stylesheet" href="../../statics/js/modules/cropper/cropper.css" media="all">
<link rel="stylesheet" type="text/css" href="../../statics/css/viewer.min.css">
<!--<script src="https://cdnjs.cloudflare.com/ajax/libs/cropperjs/1.5.7/cropper.min.js"></script>-->
<script src="../../statics/js/modules/cropper/cropper.min.js"></script>
<script src="../../statics/common/photoviewer/dist/photoviewer.js"></script>
<script src="../../statics/common/layui/autocomplete.js"></script>
<script  src="../../statics/js/modules/viewer/viewer.min.js"></script>
<script src="../../statics/common/print-js/print.min.js"></script>
<link rel="stylesheet" type="text/css" href="../../statics/common/print-js/print.min.css">
<script type="text/javascript" src="../../statics/common/xmselect/xm-select.js"></script>
<script type="text/javascript" src="../../statics/js/searchview.js"></script>
<script type="text/javascript" src="../../statics/js/tableedit.js"></script>

<!--<script type="text/javascript" src="http://api.map.baidu.com/api?v=1.0&type=webgl&ak=eo4XeZhRKHsQ0NOe6u6NkKscmRsk416B"></script>-->

<!-- 引入组件库 -->
<link rel="stylesheet" type="text/css" href="../../statics/css/index.css">






</head>
<body class="ren-body">
    <div id="rrapp" v-cloak>
        <form class="layui-form">
            <div class="form-content-box">
                <div class="form-content-session-box">
                    <div class="card">
                        <div class="layui-row layui-form-row-content">
                            <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                                <label class="layui-form-label">选择车牌号:</label>
                                <div class="layui-input-inline">
                                    <input v-model="insuranceManage.carNo"  lay-verify="carNoVerify" id="carNo"   @click="selectCarNo" type="text" class="layui-input searchVal"  placeholder="请选择车牌号" readonly/>
                                </div>
                            </div>
                            <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                                <label class="layui-form-label">选择车架号:</label>
                                <div class="layui-input-inline">
                                    <input v-model="insuranceManage.vinNo" lay-verify="vinNoVerify" id="vinNo" @click="selectVinNo"  type="text" class="layui-input searchVal"  placeholder="请选择车架号" readonly/>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <input v-model="insuranceManage.carId" id="carId" value="" type="hidden" class="layui-input searchVal"  />
            <div class="form-content-box">
                <div class="list-search-sup-title new-layui-title border-bottom-dashed">
                    基础信息
                </div>
                <div class="form-content-session-box">
                    <div class="card">
                        <div class="layui-row layui-form-row-content">
                            <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                                <label class="layui-form-label" style="font-weight: bold;color: #0a0a0a">车辆品牌/车系/车型:</label>
                                <div class="layui-input-inline">
                                    <input  v-model="insuranceManage.vehicleUse" type="hidden"   class="layui-input searchVal" />
                                    <input  v-model="insuranceManage.timeStartRent" type="hidden"   class="layui-input searchVal" />
                                    <input  v-model="insuranceManage.timeFinishRent" type="hidden"   class="layui-input searchVal" />
                                    <input v-model = "insuranceManage.carBrandModelName" id="carBrandModelName" type="text" class="layui-input searchVal"  placeholder="" readonly/>
                                </div>
                            </div>
                            <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                                <label class="layui-form-label" style="font-weight: bold;color: #0a0a0a">车架号:</label>
                                <div class="layui-input-inline">
                                    <input v-model="insuranceManage.vinNo"  type="text" id = "carVinNo"  class="layui-input searchVal"  placeholder="" readonly/>
                                </div>
                            </div>
                            <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                                <label class="layui-form-label">客户名称:</label>
                                <div class="layui-input-inline">
                                    <input v-model="insuranceManage.customerName" id="customerName"  type="text" class="layui-input searchVal"   placeholder=""  readonly/>
                                </div>
                            </div>
                            <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                                <label class="layui-form-label">车辆状态:</label>
                                <div class="layui-input-inline">
                                    <input  v-model="insuranceManage.carStatusStr" id="carStatusStr" type="text"   class="layui-input searchVal"   placeholder=""  readonly/>
                                </div>
                            </div>
                            <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                                <label class="layui-form-label">订单编号:</label>
                                <div class="layui-input-inline">
                                    <input  v-model="insuranceManage.departureNo" type="text" id="departureNo"   class="layui-input searchVal" placeholder=""  readonly/>
                                </div>
                            </div>
                            <div class="layui-inline layui-col-md6 layui-col-sm12 layui-col-xs6">
                                <label class="layui-form-label">车辆所属公司:</label>
                                <div class="layui-input-inline">
                                    <input  v-model="insuranceManage.carBelongCompanyName" id="belongCompanyName" type="text" class="layui-input searchVal" placeholder=""  readonly/>
                                </div>
                            </div>
                            <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                                <label class="layui-form-label">租赁开始时间:</label>
                                <div class="layui-input-inline">
                                    <input  v-model="insuranceManage.timeStartRent" type="text" id="timeStartRent" class="layui-input searchVal" placeholder="" readonly/>
                                </div>
                            </div>
                            <div class="layui-inline layui-col-md6 layui-col-sm12 layui-col-xs6">
                                <label class="layui-form-label">租赁结束时间:</label>
                                <div class="layui-input-inline">
                                    <input  v-model="insuranceManage.timeFinishRent" type="text"  id="timeFinishRent"  class="layui-input searchVal" placeholder="" readonly/>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="form-content-box">
                <div class="list-search-sup-title new-layui-title border-bottom-dashed">
                    交强险
                </div>
                <div class="form-content-session-box">
                    <div class="card">
                        <div class="layui-row layui-form-row-content">
                            <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6"><!-- <span style="color:red;">*</span> -->
                                <label class="layui-form-label">交强险保险公司:</label>
                                <div class="layui-input-inline">
                                    <select  name="compulsoryCompanyId"  lay-verify="compulsoryCompanyIdVerify"   v-model="insuranceManage.compulsoryCompanyId" lay-filter="compulsoryCompanyId"   class="layui-select"   >
                                        <option value="">请选择保险公司</option>
                                        <option v-for="r in compulsoryInsuranceList" :value="r.id">{{r.companyName}}</option>
                                    </select>
                                </div>
                            </div>
                            <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                                <label class="layui-form-label">交强险保单号:</label>
                                <div class="layui-input-inline">
                                    <input v-model="insuranceManage.compulsoryNo"   type="text"   lay-verify="compulsoryNoVerify" class="layui-input searchVal"  placeholder="请输入交强险保单号" />
                                </div>
                            </div>
                            <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                                <label class="layui-form-label">交强险开始时间:</label>
                                <div class="layui-input-inline">
                                    <input v-model="insuranceManage.compulsoryStartTime" readonly id="compulsoryStartTime" lay-verify="compulsoryStartTimeVerify" type="text" class="layui-input searchVal"   placeholder="请选择交强险开始时间" />
                                </div>
                            </div>
                            <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                                <label class="layui-form-label">交强险结束时间:</label>
                                <div class="layui-input-inline">
                                    <input  v-model="insuranceManage.compulsoryEndTime" readonly id="compulsoryEndTime" type="text"  lay-verify="compulsoryEndTimeVerify" class="layui-input searchVal"   placeholder="请选择交强险结束时间" />
                                </div>
                            </div>
                            <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                                <label class="layui-form-label">交强险费用:</label>
                                <div class="layui-input-inline">
                                    <input  v-model="insuranceManage.compulsoryAmount" type="text"   lay-verify="compulsoryAmountVerify" class="layui-input searchVal" placeholder="请填写交强险保单费用" />
                                </div>
                            </div>
                            <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                                <label class="layui-form-label">付款对象:</label>
                                <div class="layui-input-inline">
                                    <select  name="compulsoryInsurancePayId"  lay-verify="compulsoryInsurancePayIdVerify"   v-model="insuranceManage.compulsoryInsurancePayId" lay-filter="compulsoryInsurancePayId"   class="layui-select"   >
                                        <option value="">请选择付款对象</option>
                                        <option v-for="r in compulsoryInsurancePay" :value="r.code">{{r.value}}</option>
                                    </select>
                                </div>
                            </div>
                            <div class="layui-inline layui-col-md12 layui-col-sm12 layui-col-xs12">
                                <label class="layui-form-label">备注:</label>
                                <div class="layui-input-inline">
                                    <textarea v-model="insuranceManage.compulsoryRemark" placeholder="请输入交强险备注说明" class="layui-textarea"></textarea>
                                </div>
                            </div>
                            <div class="card">
                                <div class="layui-row layui-form-row-content">
                                    <div class="layui-inline layui-col-md12 layui-col-sm12 layui-col-xs12">
                                        <label class="layui-form-label">交强险保单照片:</label>
                                        <div class="layui-input-inline">
                                            <div class="layui-input-inline">
                                                <div class="layui-input-inline-upload">
                                                    <div :id="fileLstId" class="layui-input-inline-upload-show box-rect" v-for="(item,index) in jqxFileList">
                                                        <div v-show="item.typeFile == 1" class="layui-input-inline-upload-button">
                                                            <img :src="imageURL + item.url" class="view-img">
                                                        </div>
                                                        <div v-show="item.typeFile != 1" class="layui-input-inline-upload-button">
                                                            {{item.nameAccessory}}
                                                        </div>
                                                        <div class="layui-input-inline-upload-show-delete btn-event" @click="delJqxFile(item.id)">
                                                            删除
                                                        </div>
                                                    </div>
                                                    <div class="layui-input-inline-upload-button box-rect box-rect-event" id="jqxImages">
                                                        <img src="../../statics/images/inline-upload@2x.png">
                                                    </div>
                                                </div>
                                                <div class="layui-input-inline-upload-text">
                                                    附件说明：附件最大支持30M，
                                                    支持格式：PDF、Word、Excel、JPG、PNG 、ZIP </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="form-content-box">
                <div class="list-search-sup-title new-layui-title border-bottom-dashed">
                    商业险
                </div>
                <div class="form-content-session-box">
                    <div class="card">
                        <div class="layui-row layui-form-row-content">
                            <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                                <label class="layui-form-label">商业险保险公司:</label>
                                <div class="layui-input-inline">
                                    <select  name="commercialCompanyId"   v-model="insuranceManage.commercialCompanyId" lay-verify="commercialCompanyIdVerify"  lay-filter="commercialCompanyId"   class="layui-select"   >
                                        <option value="">请选择保险公司</option>
                                        <option v-for="r in commercialInsuranceList" :value="r.id">{{r.companyName}}</option>
                                    </select>
                                </div>
                            </div>
                            <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                                <label class="layui-form-label">商业险保单号:</label>
                                <div class="layui-input-inline">
                                    <input v-model="insuranceManage.commercialNo"   type="text"   class="layui-input searchVal" lay-verify="commercialNoVerify"  placeholder="请输入商业险保单号" />
                                </div>
                            </div>
                            <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                                <label class="layui-form-label">商业险开始时间:</label>
                                <div class="layui-input-inline">
                                    <input v-model="insuranceManage.commercialStartTime" readonly id="commercialStartTime" type="text" class="layui-input searchVal" lay-verify="commercialStartTimeVerify"   placeholder="请选择商业险开始时间" />
                                </div>
                            </div>
                            <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                                <label class="layui-form-label">商业险结束时间:</label>
                                <div class="layui-input-inline">
                                    <input  v-model="insuranceManage.commercialEndTime" readonly id="commercialEndTime" type="text"  class="layui-input searchVal"  lay-verify="commercialEndTimeVerify"  placeholder="请选择商业险结束时间" />
                                </div>
                            </div>
                            <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                                <label class="layui-form-label">商业险总费用:</label>
                                <div class="layui-input-inline">
                                    <input id="commercialAmount"  required="number" v-model="insuranceManage.commercialAmount" type="text"  class="layui-input searchVal" lay-verify="commercialAmountVerify"  placeholder="请输入商业险总费用" />
                                </div>
                            </div>
                            <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                                <label class="layui-form-label">付款对象:</label>
                                <div class="layui-input-inline">
                                    <select  name="commercialInsurancePayId"  lay-verify="commercialInsurancePayIdVerify"   v-model="insuranceManage.commercialInsurancePayId" lay-filter="commercialInsurancePayId"   class="layui-select"   >
                                        <option value="">请选择付款对象</option>
                                        <option v-for="r in commercialInsurancePay" :value="r.code">{{r.value}}</option>
                                    </select>
                                </div>
                            </div>
                            <div class="layui-inline layui-col-md12 layui-col-sm12 layui-col-xs12">
                                <label class="layui-form-label">备注:</label>
                                <div class="layui-input-inline">
                                    <textarea v-model="insuranceManage.commercialRemark" placeholder="请输入商业险备注说明" class="layui-textarea"></textarea>
                                </div>
                            </div>
                            <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                                <label class="layui-form-label">商业险种:</label>
                                <div class="layui-input-inline">
                                    <select  name="insuranceTypeNo"   v-model="insuranceManage.insuranceTypeNo" lay-verify="insuranceTypeNoVerify"   lay-filter="selectInsuranceTypeNo"  class="layui-select" >
                                        <option value="">请选择险种</option>
                                        <option v-for="item in insuranceTypeList" :value="item.code">{{item.value}}</option>
                                    </select>
                                </div>
                                <div style="margin-left: 750px;margin-top: -30px;">
                                    <a class="layui-btn search-btn" @click="addTo">添加</a>
                                </div>
                                <div  style="margin-left: 1200px;margin-top: -30px;">
                                    <div  class="layui-input-inline" >
                                        <label class="layui-form-label"><span>合计费用:￥{{insuranceManage.commercialTotalAmount}}</span></label>
                                    </div>
                                </div>
                                <br/><br/> <br/><br/>
                            </div>
                            <div class="card">
                                <div class="layui-row layui-form-row-content">
                                    <div class="layui-inline layui-col-md12 layui-col-sm12 layui-col-xs12">
                                        <label class="layui-form-label">商业险保单照片:</label>
                                        <div class="layui-input-inline">
                                            <div class="layui-input-inline">
                                                <div class="layui-input-inline-upload">
                                                    <div :id="fileLstId" class="layui-input-inline-upload-show box-rect" v-for="(item,index) in syxxFileList">
                                                        <div v-show="item.typeFile == 1" class="layui-input-inline-upload-button">
                                                            <img :src="imageURL + item.url" class="view-img">
                                                        </div>
                                                        <div v-show="item.typeFile != 1" class="layui-input-inline-upload-button">
                                                            {{item.nameAccessory}}
                                                        </div>
                                                        <div class="layui-input-inline-upload-show-delete btn-event" @click="delSyxFile(item.id)">
                                                            删除
                                                        </div>
                                                    </div>
                                                    <div class="layui-input-inline-upload-button box-rect box-rect-event" id="syxImages">
                                                        <img src="../../statics/images/inline-upload@2x.png">
                                                    </div>
                                                </div>
                                                <div class="layui-input-inline-upload-text">
                                                    附件说明：附件最大支持30M，
                                                    支持格式：PDF、Word、Excel、JPG、PNG 、ZIP </div>
                                            </div>
                                            <!--<div class="layui-input-inline-upload-text">说明：车辆照片在APP车辆详情页面展示；</div>-->
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div   v-show="insuranceTypeGridMS">
                <table class="layui-hide" id="insuranceTypeGrid" lay-filter="insuranceTypeGrid"></table>
                <br/><br/><br/><br/><br/>
            </div>

            <div class="form-content-box" v-show="openFlow">
                <div class="list-search-sup-title new-layui-title border-bottom-dashed">
                    车辆保险流程
                </div>
                <div class="car-details-info car-padding">
                    <div class="car-flowChart">
                        <div class="car-flowChart-circle" v-for="(item, index) in bpmChartDtoList" :key="item.index">
                            <div class="car-flowChart-images">
                                <img class="car-flowChart-icon" v-if="item.approveStatus != 2" src="../../statics/images/point2.png" alt="">
                                <img class="car-flowChart-line" v-if="item.approveStatus != 2 && index != bpmChartDtoList.length-1" src="../../statics/images/line3.png" alt="">
                                <img class="car-flowChart-icon" v-if="item.approveStatus == 2" src="../../statics/images/point.png" alt="">
                                <img class="car-flowChart-line" v-if="item.approveStatus == 2 && index != bpmChartDtoList.length-1" src="../../statics/images/line4.png" alt="">
                            </div>
                            <div class="car-flowChart-content">
                                <div class="car-flowChart-status">
                                    <p class="car-flowChart-title">{{item.userName}}-{{item.nodeName}}</p>
                                    <p class="car-flowChart-text">{{item.approveTime}}</p>
                                </div>
                                <div class="car-flowChart-status-feedback">
                                    <p class="car-flowChart-title car-flowChar-color">{{item.approveNodeStatus}}</p>
                                    <p class="car-flowChart-text" v-if="item.elapsedTime != null && item.elapsedTime != ''">耗时:{{item.elapsedTime}}</p>
                                </div>
                                <div class="car-flowChart-status" v-if="item.approveContent != null && item.approveContent != ''">
                                    <p class="car-flowChart-title">审核意见:{{item.approveContent}}</p>
                                    <p class="car-flowChart-text"></p>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="float-btn-group">
                <a class="layui-btn reset-btn" @click="cancel">返回</a>
                <a class="layui-btn search-btn" lay-submit lay-filter="saveOrUpdate">保存</a>
               <!-- <button class="layui-btn" id="saveReceivables" lay-submit lay-filter="saveOrUpdate">保存</button>-->
            </div>
        </form>
    </div>

    <script type="text/html" id="barTpl">
        <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
        <a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="del">删除</a>
    </script>

    <script src="../../statics/js/modules/maintenance/insurancemanageadd.js"></script>
</body>
</html>